﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Dto.CommonModel.TreeLike;
using Happy.Query;

namespace Happy.Application.Query.CommonModel.TreeLike
{
    /// <summary>
    /// 树形结构的查询服务接口。
    /// </summary>
    public interface ITreeNodeQueryService<T, TId> : IQueryService<T, TId>
        where T : ITreeNodeView<TId>
        where TId : struct
    {
        /// <summary>
        /// 返回孩子。
        /// </summary>
        IEnumerable<T> Children(QueryRequest request, TId? id);
    }
}
